<?php
  class view{
    static $page_title;
    static function display ($file, $template_var = array(), $page_title = '') {
      global $module_name;
      extract($template_var, EXTR_OVERWRITE);
      require 'themes/'.config::get('theme').'/'.$module_name.'/'.$file.'.php';
    }
    static function partial ($file, $template_var = array()) {
      global $module_name;
      extract($template_var, EXTR_OVERWRITE);
      require 'themes/'.config::get('theme').'/'.$module_name.'/'.$file.'.php';
    }
  }